home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / gdd-pths.hqx / Paths / background_2778.xml next >
Extensible Markup Language  |  1992-09-09  |  12KB  |  371 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>2778</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_5764.pbm</bitmap>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3147.css" />
  11.     <part>
  12.         <id>2</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <false /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <false /> </lockText>
  21.         <rect>
  22.             <left>36</left>
  23.             <top>60</top>
  24.             <right>263</right>
  25.             <bottom>246</bottom>
  26.         </rect>
  27.         <style>scrolling</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <true /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font>Geneva</font>
  37.         <textSize>10</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <textHeight>13</textHeight>
  40.         <name>path</name>
  41.         <script></script>
  42.     </part>
  43.     <part>
  44.         <id>1</id>
  45.         <type>field</type>
  46.         <visible> <true /> </visible>
  47.         <dontWrap> <false /> </dontWrap>
  48.         <dontSearch> <false /> </dontSearch>
  49.         <sharedText> <false /> </sharedText>
  50.         <fixedLineHeight> <false /> </fixedLineHeight>
  51.         <autoTab> <false /> </autoTab>
  52.         <lockText> <false /> </lockText>
  53.         <rect>
  54.             <left>262</left>
  55.             <top>60</top>
  56.             <right>420</right>
  57.             <bottom>246</bottom>
  58.         </rect>
  59.         <style>scrolling</style>
  60.         <autoSelect> <false /> </autoSelect>
  61.         <showLines> <false /> </showLines>
  62.         <wideMargins> <true /> </wideMargins>
  63.         <multipleLines> <false /> </multipleLines>
  64.         <reservedFamily> 0 </reservedFamily>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>0</icon>
  67.         <textAlign>left</textAlign>
  68.         <font>Geneva</font>
  69.         <textSize>10</textSize>
  70.         <textStyle>plain</textStyle>
  71.         <textHeight>13</textHeight>
  72.         <name>metaInformation</name>
  73.         <script></script>
  74.     </part>
  75.     <part>
  76.         <id>3</id>
  77.         <type>field</type>
  78.         <visible> <false /> </visible>
  79.         <dontWrap> <false /> </dontWrap>
  80.         <dontSearch> <false /> </dontSearch>
  81.         <sharedText> <false /> </sharedText>
  82.         <fixedLineHeight> <false /> </fixedLineHeight>
  83.         <autoTab> <false /> </autoTab>
  84.         <lockText> <true /> </lockText>
  85.         <rect>
  86.             <left>36</left>
  87.             <top>59</top>
  88.             <right>420</right>
  89.             <bottom>246</bottom>
  90.         </rect>
  91.         <style>scrolling</style>
  92.         <autoSelect> <false /> </autoSelect>
  93.         <showLines> <false /> </showLines>
  94.         <wideMargins> <true /> </wideMargins>
  95.         <multipleLines> <false /> </multipleLines>
  96.         <reservedFamily> 0 </reservedFamily>
  97.         <titleWidth>0</titleWidth>
  98.         <icon>0</icon>
  99.         <textAlign>left</textAlign>
  100.         <font>Geneva</font>
  101.         <textSize>10</textSize>
  102.         <textStyle>plain</textStyle>
  103.         <textHeight>13</textHeight>
  104.         <name>History</name>
  105.         <script>on mouseUplock screenput the second word of the clickLine into theLineselect line theLine of bg fld "History"put item 1 of the selectedText into myIDput item 2 of the selectedText into myStackvisual effect iris opengo to cd id myID of stack myStackunlock screenend mouseUp</script>
  106.     </part>
  107.     <part>
  108.         <id>4</id>
  109.         <type>button</type>
  110.         <visible> <true /> </visible>
  111.         <reserved5> 0 </reserved5>
  112.         <reserved4> 0 </reserved4>
  113.         <reserved3> 0 </reserved3>
  114.         <reserved2> 0 </reserved2>
  115.         <reserved1> 0 </reserved1>
  116.         <enabled> <true /> </enabled>
  117.         <rect>
  118.             <left>101</left>
  119.             <top>265</top>
  120.             <right>162</right>
  121.             <bottom>289</bottom>
  122.         </rect>
  123.         <style>transparent</style>
  124.         <showName> <false /> </showName>
  125.         <highlight> <true /> </highlight>
  126.         <autoHighlight> <true /> </autoHighlight>
  127.         <sharedHighlight> <true /> </sharedHighlight>
  128.         <family>0</family>
  129.         <titleWidth>0</titleWidth>
  130.         <icon>0</icon>
  131.         <textAlign>center</textAlign>
  132.         <font>Chicago</font>
  133.         <textSize>12</textSize>
  134.         <textStyle>plain</textStyle>
  135.         <name>Paths</name>
  136.         <script>on mouseUpset the hilite of me to trueset the hilite of bg btn "History" to falselock screenhide bg fld "History"hide bg fld "History Title"show bg fld "Path Title"show bg fld "Path"show bg fld "MetaInformation"unlock screen with iris closeend mouseUp</script>
  137.     </part>
  138.     <part>
  139.         <id>5</id>
  140.         <type>button</type>
  141.         <visible> <true /> </visible>
  142.         <reserved5> 0 </reserved5>
  143.         <reserved4> 0 </reserved4>
  144.         <reserved3> 0 </reserved3>
  145.         <reserved2> 0 </reserved2>
  146.         <reserved1> 0 </reserved1>
  147.         <enabled> <true /> </enabled>
  148.         <rect>
  149.             <left>184</left>
  150.             <top>266</top>
  151.             <right>262</right>
  152.             <bottom>289</bottom>
  153.         </rect>
  154.         <style>transparent</style>
  155.         <showName> <false /> </showName>
  156.         <highlight> <false /> </highlight>
  157.         <autoHighlight> <true /> </autoHighlight>
  158.         <sharedHighlight> <true /> </sharedHighlight>
  159.         <family>0</family>
  160.         <titleWidth>0</titleWidth>
  161.         <icon>0</icon>
  162.         <textAlign>center</textAlign>
  163.         <font>Chicago</font>
  164.         <textSize>12</textSize>
  165.         <textStyle>plain</textStyle>
  166.         <name>history</name>
  167.         <script>on mouseUpset the hilite of me to trueset the hilite of bg btn "Paths" to falselock screenhide bg fld "Path Title"hide bg fld "Path"hide bg fld "MetaInformation"show bg fld "History"show bg fld "History Title"unlock screen with iris openend mouseUp</script>
  168.     </part>
  169.     <part>
  170.         <id>7</id>
  171.         <type>field</type>
  172.         <visible> <false /> </visible>
  173.         <dontWrap> <false /> </dontWrap>
  174.         <dontSearch> <false /> </dontSearch>
  175.         <sharedText> <true /> </sharedText>
  176.         <fixedLineHeight> <false /> </fixedLineHeight>
  177.         <autoTab> <false /> </autoTab>
  178.         <lockText> <false /> </lockText>
  179.         <rect>
  180.             <left>36</left>
  181.             <top>40</top>
  182.             <right>420</right>
  183.             <bottom>60</bottom>
  184.         </rect>
  185.         <style>rectangle</style>
  186.         <autoSelect> <false /> </autoSelect>
  187.         <showLines> <false /> </showLines>
  188.         <wideMargins> <true /> </wideMargins>
  189.         <multipleLines> <false /> </multipleLines>
  190.         <reservedFamily> 0 </reservedFamily>
  191.         <titleWidth>0</titleWidth>
  192.         <icon>0</icon>
  193.         <textAlign>left</textAlign>
  194.         <font>Times</font>
  195.         <textSize>14</textSize>
  196.         <textStyle>bold</textStyle>
  197.         <textHeight>18</textHeight>
  198.         <name>history title</name>
  199.         <script></script>
  200.     </part>
  201.     <part>
  202.         <id>8</id>
  203.         <type>button</type>
  204.         <visible> <true /> </visible>
  205.         <reserved5> 0 </reserved5>
  206.         <reserved4> 0 </reserved4>
  207.         <reserved3> 0 </reserved3>
  208.         <reserved2> 0 </reserved2>
  209.         <reserved1> 0 </reserved1>
  210.         <enabled> <true /> </enabled>
  211.         <rect>
  212.             <left>301</left>
  213.             <top>266</top>
  214.             <right>436</right>
  215.             <bottom>289</bottom>
  216.         </rect>
  217.         <style>transparent</style>
  218.         <showName> <false /> </showName>
  219.         <highlight> <false /> </highlight>
  220.         <autoHighlight> <true /> </autoHighlight>
  221.         <sharedHighlight> <false /> </sharedHighlight>
  222.         <family>0</family>
  223.         <titleWidth>0</titleWidth>
  224.         <icon>0</icon>
  225.         <textAlign>center</textAlign>
  226.         <font>Chicago</font>
  227.         <textSize>12</textSize>
  228.         <textStyle>plain</textStyle>
  229.         <name>History to Path</name>
  230.         <script>on mouseUpask "What is the Threshold value (seconds) for adding a node to the path?" with "60"if it is empty then exit mouseUplock screenput it into Thresholdput bg fld "History" into HistoryPathPathFromHistory HistoryPath, Thresholdunlock screenend mouseUp</script>
  231.     </part>
  232.     <part>
  233.         <id>6</id>
  234.         <type>field</type>
  235.         <visible> <true /> </visible>
  236.         <dontWrap> <false /> </dontWrap>
  237.         <dontSearch> <true /> </dontSearch>
  238.         <sharedText> <true /> </sharedText>
  239.         <fixedLineHeight> <false /> </fixedLineHeight>
  240.         <autoTab> <false /> </autoTab>
  241.         <lockText> <false /> </lockText>
  242.         <rect>
  243.             <left>36</left>
  244.             <top>41</top>
  245.             <right>420</right>
  246.             <bottom>61</bottom>
  247.         </rect>
  248.         <style>rectangle</style>
  249.         <autoSelect> <false /> </autoSelect>
  250.         <showLines> <false /> </showLines>
  251.         <wideMargins> <true /> </wideMargins>
  252.         <multipleLines> <false /> </multipleLines>
  253.         <reservedFamily> 0 </reservedFamily>
  254.         <titleWidth>0</titleWidth>
  255.         <icon>0</icon>
  256.         <textAlign>left</textAlign>
  257.         <font>Times</font>
  258.         <textSize>14</textSize>
  259.         <textStyle>bold</textStyle>
  260.         <textHeight>18</textHeight>
  261.         <name>path title</name>
  262.         <script></script>
  263.     </part>
  264.     <part>
  265.         <id>10</id>
  266.         <type>field</type>
  267.         <visible> <true /> </visible>
  268.         <dontWrap> <false /> </dontWrap>
  269.         <dontSearch> <false /> </dontSearch>
  270.         <sharedText> <false /> </sharedText>
  271.         <fixedLineHeight> <false /> </fixedLineHeight>
  272.         <autoTab> <false /> </autoTab>
  273.         <lockText> <true /> </lockText>
  274.         <rect>
  275.             <left>36</left>
  276.             <top>18</top>
  277.             <right>420</right>
  278.             <bottom>42</bottom>
  279.         </rect>
  280.         <style>rectangle</style>
  281.         <autoSelect> <false /> </autoSelect>
  282.         <showLines> <false /> </showLines>
  283.         <wideMargins> <true /> </wideMargins>
  284.         <multipleLines> <false /> </multipleLines>
  285.         <reservedFamily> 0 </reservedFamily>
  286.         <titleWidth>0</titleWidth>
  287.         <icon>0</icon>
  288.         <textAlign>center</textAlign>
  289.         <font>Helvetica</font>
  290.         <textSize>18</textSize>
  291.         <textStyle>bold</textStyle>
  292.         <textHeight>24</textHeight>
  293.         <name>Path Name</name>
  294.         <script></script>
  295.     </part>
  296.     <part>
  297.         <id>11</id>
  298.         <type>button</type>
  299.         <visible> <true /> </visible>
  300.         <reserved5> 0 </reserved5>
  301.         <reserved4> 0 </reserved4>
  302.         <reserved3> 0 </reserved3>
  303.         <reserved2> 0 </reserved2>
  304.         <reserved1> 0 </reserved1>
  305.         <enabled> <true /> </enabled>
  306.         <rect>
  307.             <left>36</left>
  308.             <top>267</top>
  309.             <right>58</right>
  310.             <bottom>289</bottom>
  311.         </rect>
  312.         <style>transparent</style>
  313.         <showName> <false /> </showName>
  314.         <highlight> <false /> </highlight>
  315.         <autoHighlight> <true /> </autoHighlight>
  316.         <sharedHighlight> <false /> </sharedHighlight>
  317.         <family>0</family>
  318.         <titleWidth>0</titleWidth>
  319.         <icon>16560</icon>
  320.         <textAlign>center</textAlign>
  321.         <font>Chicago</font>
  322.         <textSize>12</textSize>
  323.         <textStyle>plain</textStyle>
  324.         <name>next</name>
  325.         <script>on mouseUpvisual effect wipe leftgo next cd of this bgend mouseUp</script>
  326.     </part>
  327.     <part>
  328.         <id>12</id>
  329.         <type>button</type>
  330.         <visible> <true /> </visible>
  331.         <reserved5> 0 </reserved5>
  332.         <reserved4> 0 </reserved4>
  333.         <reserved3> 0 </reserved3>
  334.         <reserved2> 0 </reserved2>
  335.         <reserved1> 0 </reserved1>
  336.         <enabled> <true /> </enabled>
  337.         <rect>
  338.             <left>11</left>
  339.             <top>268</top>
  340.             <right>32</right>
  341.             <bottom>289</bottom>
  342.         </rect>
  343.         <style>transparent</style>
  344.         <showName> <false /> </showName>
  345.         <highlight> <false /> </highlight>
  346.         <autoHighlight> <true /> </autoHighlight>
  347.         <sharedHighlight> <false /> </sharedHighlight>
  348.         <family>0</family>
  349.         <titleWidth>0</titleWidth>
  350.         <icon>15420</icon>
  351.         <textAlign>center</textAlign>
  352.         <font>Chicago</font>
  353.         <textSize>12</textSize>
  354.         <textStyle>plain</textStyle>
  355.         <name>prev</name>
  356.         <script>on mouseUpvisual effect wipe rightgo prev cd of this bgend mouseUp</script>
  357.     </part>
  358.     <content>
  359.         <layer>background</layer>
  360.         <id>6</id>
  361.         <text>CardID, Stack Name                   Meta-information</text>
  362.     </content>
  363.     <content>
  364.         <layer>background</layer>
  365.         <id>7</id>
  366.         <text>Card ID, Stack Name, Time, Duration</text>
  367.     </content>
  368.     <name>Path</name>
  369.     <script>on opencardput the short name of this cd into bg fld "Path Name"-- if bg fld "Path" is visible then-- set the hilite of bg btn "History" to false-- set the hilite of bg btn "Paths" to true-- end ifend opencardon PathFromHistory History, Threshold-- This create a new path from some history list.-- The determining factor in being added to the path-- is the amount of time that the node in the history was visited.-- The value that is the cut off point is the variable Threshold.-- The History data structure is in the form:-- Card ID, Stack name, time of visit, length of visit-- So the length of visit is the determining factorput empty into NewPathrepeat with x = 1 to the number of lines of Historyset cursor to busyif item 4 of line x of History >= Threshold thenput item 1 of line x of History & "," & item 2 of line x of History & return after NewPathend ifend repeatif NewPath is empty thenanswer "No nodes in path. Try a lower threshold value."elseask "Name this new path." with "New Path"if the result = "Cancel" or it is empty then exit PathFromHistoryput it into myPathNamedoMenu "New Card"set the name of this card to myPathNameput NewPath into bg fld "Path"put "endNode" & return into myInforepeat with x = 1 to the number of lines of NewPathset cursor to busyput "endNode" & return after myInfoend repeatput myInfo into bg fld "metainformation"end ifend PathFromHistory</script>
  370. </background>
  371.